﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="ListaAvanceFinSemanal.aspx.vb" Inherits="Devida_ListaAvances" Theme="Yahoo-Ocean" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style2
        {
            width:100%;
        }
        .Frm_Fondo_fila_linea {
	BACKGROUND-COLOR: #1867B2;
            width: 0;
        }
        .style14
        {
            BACKGROUND-COLOR: #199A44;
            width: 100px;
        }
        .style17
        {
            BACKGROUND-COLOR: #199A44;
            width: 78px;
        }
        .style32
    {
        BACKGROUND-COLOR: #199A44;
        width: 196px;
    }
    .style33
    {
        BACKGROUND-COLOR: #199A44;
        width: 139px;
    }
    .style38
    {
        width: 88px;
    }
    .style42
    {
        width: 64px;
    }
     .Cabecera
        {
            height: 18px;
            font-weight: bold;
            font-size: 10px;
            color: White; 
            text-align: center;
            text-transform: uppercase;
            background-color: #66CC99;
        }
    </style>
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" /> 
    <link href="../css/style2.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" /> 

    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function startWord(strFile) {
            var myApp = new ActiveXObject("Word.Application");
            if (myApp != null) {
                myApp.Visible = true;
                myApp.Documents.Open(strFile);
            }
        }
        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label ID="lb_name" runat="server" Font-Names="Arial" Font-Size="17px" ForeColor="White"
        Text="Avance financiero semanal jueves" Font-Bold="True"></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
      <table>                            
          <tr>
              <td>
              <table  cellpadding="0" cellspacing="0" class="style2" >
              <tr>
              <td>
              <div style="border: solid 1px #99aabd; width: 900px; display:none; overflow: auto;" align="center">
                 <table cellpadding="0" cellspacing="0" class="style2">
                      <tr>
                        <td align="center" class="style17"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label11" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="Codigo"></asp:Label>
                        </td>
                        <td align="center" class="style33"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label12" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="Proyectos / Actividades"></asp:Label>
                        </td>
                        <td align="center" class="style32"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label17" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="Periodo"></asp:Label>
                        </td>
                        <td align="center" class="style14"; style="border:0.5px solid #FFFFFF">
                            <asp:Label ID="Label20" runat="server" CssClass="frm_formato" ForeColor="White" 
                                Text="PPER"></asp:Label>
                        </td>
                     </tr>
                 </table>
              </div>
              </td>
               </tr>                                                           
                </table>
              </td>
          </tr>
          <tr>
           <td>
           <div style="border: solid 1px #99aabd; width: 1200px;  overflow: auto;" >
               <table cellpadding="0" cellspacing="0" class="style2">
<tr>
    <td style="width: 500px ;" align="left ">
        <asp:Label ID="lblNombre" runat="server" CssClass="label" Text="  Ejecutor/Nombre: "></asp:Label>
        <asp:TextBox ID="txt_numero" runat="server" CssClass="frm_formato_caja" Width="400px"
            AutoPostBack="True"></asp:TextBox>
        <cc1:FilteredTextBoxExtender ID="filtro1" runat="server" FilterType="UppercaseLetters, LowercaseLetters, Numbers, Custom" InvalidChars=" " TargetControlID="txt_numero">
        </cc1:FilteredTextBoxExtender>
    </td>
    <td style="width: 150px" align="left">
        <asp:Label ID="Label2" runat="server" CssClass="label" Text="  Periodo: "></asp:Label>
        <asp:DropDownList ID="ddlPeriodo" runat="server" CssClass="ddl" Width="100px" AutoPostBack="True">
        </asp:DropDownList>
    </td>

    <td style="width: 150px" align="left">
        <asp:Label ID="Label1" runat="server" CssClass="label" Text="  Tipo: "></asp:Label>
        <asp:DropDownList ID="ddlTipo" runat="server" CssClass="ddl" Width="100px" AutoPostBack="True">
        </asp:DropDownList>
    </td>

    <td style="width: 10px">
        <asp:ImageButton ID="buscar" runat="server" ImageUrl="~/Imagenes/btn_acclupa.jpg" ToolTip="Buscar" />
    </td>
                </tr>
               </table>
             </div>
           </td>
         </tr>
          <tr>
              <td>                                                                  
              </td>
          </tr>
          <tr>
            <td>
                    <table cellpadding="0" cellspacing="0" style="width: 1200px; height: 440px;">
                    <tr>
                        <td>
                        <div  style="border: solid 1px #99aabd; width: 1200px; height: 440px; overflow: auto;"  align="center">

                                <asp:GridView ID="gv_impresion" runat="server" AutoGenerateColumns="False" 
                                            CellPadding="0" CssClass="grid" Font-Size="8pt" GridLines="Vertical" 
                                            Width="2550px"  AllowPaging="True" PageSize="7" >
                                            <PagerSettings Mode="Numeric" PageButtonCount="20" 
                                                FirstPageText="PRIMERO" LastPageText="ULTIMO" NextPageText="SIGUIENTE" 
                                                PreviousPageText="ANTERIOR" FirstPageImageUrl="~/Imagenes/Primero.png" 
                                                LastPageImageUrl="~/Imagenes/Ultimo.png" 
                                                NextPageImageUrl="~/Imagenes/Siguiente.png" 
                                                PreviousPageImageUrl="~/Imagenes/Anterior.png" />
                                            <PagerStyle CssClass="pagina"  />

                                            <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />

                                            <Columns>
<%--                                                <asp:BoundField HeaderText="N°" DataField="NUMERO" ItemStyle-HorizontalAlign="Center"
                                                    ItemStyle-Width="20px" >
                                                <ItemStyle HorizontalAlign="Center" Width="20px" />
                                                </asp:BoundField>--%>
                                                <asp:TemplateField ItemStyle-Width="10px">
                                                    <HeaderTemplate>
                                                        N°
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%# Container.DataItemIndex + 1%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:BoundField HeaderText="Poa" DataField="POA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="50px" />
                                                        
                                                <asp:BoundField HeaderText="Año firma" DataField="ANHIO_FIRMA_POA" ItemStyle-HorizontalAlign="Center"
                                                    ItemStyle-Width="10px" />


                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        PPER</HeaderTemplate>
                                                    <ItemStyle Width="30px" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPPER" runat="server" Text='<%# Eval("ABREVIATURA") %>'></asp:Label>
                                                        <asp:HiddenField ID="POA" runat="server" Value='<%# Eval("POA") %>' />
                                                        <asp:HiddenField ID="hfPPER" runat="server" Value='<%# Eval("PPER") %>' />
                                                        <asp:HiddenField ID="hfEjecutor" runat="server" Value='<%# Eval("EJECUTOR") %>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Ejecutor" DataField="EJE_DES" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="110px" >
                                                <ItemStyle HorizontalAlign="Left" Width="110px" />
                                                </asp:BoundField>

 <%--                                                 <asp:BoundField HeaderText="Cod Proy/Act" DataField="POA" ItemStyle-HorizontalAlign="Left"
                                                  ItemStyle-Width="50px" >
                                                <ItemStyle HorizontalAlign="Left" Width="50px" />
                                                </asp:BoundField>--%>

                                                <asp:BoundField HeaderText="Nombre Proy/Act" HeaderStyle-Wrap="true" 
                                                    DataField="NOMBRE" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="380px" >
                                                <HeaderStyle Wrap="True" />
                                                <ItemStyle HorizontalAlign="Left" Width="380px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Tipo Proy/Act" DataField="DESCRIPCION" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="50px" >
                                                <ItemStyle HorizontalAlign="Left" Width="50px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Sem." DataField="SEMAFORO" ItemStyle-Width="20px" >
                                                <ItemStyle Width="20px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Estado" DataField="PERIODO" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false"
                                                    ItemStyle-Width="70px" >
                                                <ItemStyle HorizontalAlign="Left" Width="70px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Monto Total Presupuestado" DataField="Monto_Total_Invertido"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="90px" 
                                                    HtmlEncode="false" DataFormatString="{0:N2}" >
                                                <ItemStyle HorizontalAlign="Right" Width="90px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Monto Programado Mensual Acum." DataField="MONTO_PROGRAMADO"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="90px" 
                                                    HtmlEncode="false" DataFormatString="{0:N2}" >
                                                <ItemStyle HorizontalAlign="Right" Width="90px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Monto Comprometido Acum." DataField="MONTO_COMPROMETIDO" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" >
                                                <ItemStyle HorizontalAlign="Right" Width="90px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Monto Devengado Acum." DataField="MONTO_DEVENGADO" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" >
                                                <ItemStyle HorizontalAlign="Right" Width="90px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Monto Girado Acum." DataField="MONTO_GIRADO" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" >
                                                <ItemStyle HorizontalAlign="Right" Width="90px" />
                                                </asp:BoundField>                                            
                                                <asp:BoundField HeaderText="% Girado Anual" DataField="GIRADO_ANUAL" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:P0}" >
                                                <ItemStyle HorizontalAlign="Right" Width="90px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Observaciones" DataField="OBSERVACIONES" 
                                                    ItemStyle-HorizontalAlign="Left" >
                                                <ItemStyle HorizontalAlign="Left" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Acciones" DataField="ACCION" 
                                                    ItemStyle-HorizontalAlign="Left" >
                                                <ItemStyle HorizontalAlign="Left" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" >
                                                <ItemStyle HorizontalAlign="Left" Width="100px" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" >
                                                <ItemStyle HorizontalAlign="Left" Width="100px" />
                                                </asp:BoundField>                                                
                                            </Columns>
                                            <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
                                            <AlternatingRowStyle BackColor="#CEDAF2" />                                        
                                        </asp:GridView>
                        </div>

                        <%--Otro div--%>

                        <div id="print_area2" style="width: 100%; display: none;" >
                                    <asp:Label ID="Label3" runat="server" Font-Names="Arial" align="Right" Font-Size="17px"
                                        ForeColor="black" Text="Lista de Proyectos Asignados " Font-Bold="True"></asp:Label>
                                    <asp:GridView ID="gv_doc" runat="server" AutoGenerateColumns="False" BorderColor="Black"
                                        CellPadding="4" Font-Size="8pt" GridLines="both" Width="900px" HeaderStyle-BackColor="#66CC99">
                                        <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />
                                           <Columns>

<%--                                                <asp:BoundField HeaderText="N°" DataField="NUMERO" ItemStyle-HorizontalAlign="Center"
                                                    ItemStyle-Width="20px" />--%>

                                               <asp:TemplateField ItemStyle-Width="10px">
                                                   <HeaderTemplate>
                                                       N°
                                                   </HeaderTemplate>
                                                   <ItemTemplate>
                                                       <%# Container.DataItemIndex + 1%>
                                                   </ItemTemplate>
                                               </asp:TemplateField>

                                               <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        PPER</HeaderTemplate>
                                                    <ItemStyle Width="30px" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPPER" runat="server" Text='<%# Eval("ABREVIATURA") %>'></asp:Label>                                                       
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Ejecutor" DataField="EJE_DES" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="110px" />
                                                <asp:BoundField HeaderText="Cod Proy/Act" DataField="POA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="50px" />
                                                <asp:BoundField HeaderText="Nombre Proy/Act" HeaderStyle-Wrap="true" DataField="NOMBRE" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="380px" />
                                                <asp:BoundField HeaderText="Tipo Proy/Act" DataField="DESCRIPCION" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="50px" />
                                                <asp:BoundField HeaderText="Sem." DataField="SEMAFORO" ItemStyle-Width="20px" />
                                                <asp:BoundField HeaderText="Condición" DataField="PERIODO" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="70px" />
                                                <asp:BoundField HeaderText="Monto Total Presupuestado" DataField="Monto_Total_Invertido"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" />
                                                <asp:BoundField HeaderText="Monto Programado Mensual Acum." DataField="MONTO_PROGRAMADO"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" />
                                                <asp:BoundField HeaderText="Monto Comprometido Acum." DataField="MONTO_COMPROMETIDO" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" />
                                                <asp:BoundField HeaderText="Monto Devengado Acum." DataField="MONTO_DEVENGADO" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" />
                                                <asp:BoundField HeaderText="Monto Girado Acum." DataField="MONTO_GIRADO" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:N2}" />
                                                <asp:BoundField HeaderText="% Girado Al mes" DataField="GIRADO_MES" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:P0}" />
                                                <asp:BoundField HeaderText="% Girado Anual" DataField="GIRADO_ANUAL" ItemStyle-HorizontalAlign="Right"
                                                    ItemStyle-Width="90px" HtmlEncode="false" DataFormatString="{0:P0}" />
                                                <asp:BoundField HeaderText="Observaciones" DataField="OBSERVACIONES" ItemStyle-HorizontalAlign="Left" />
                                                <asp:BoundField HeaderText="Acciones" DataField="ACCION" ItemStyle-HorizontalAlign="Left" />
                                                <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" />
                                                <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" />
                                                <asp:CommandField ShowSelectButton="false" Visible="False" />
                                            </Columns>
                                    </asp:GridView>
                               </div>
                        </td>
                    </tr>
                </table>
                    </td>
         </tr>    
          <tr><td>
              <table width="900px" cellpadding="0" cellspacing="0">
                  <tr>
                      <td width="100px" style="text-align:left; vertical-align:top;">
                          <asp:ImageButton ID="btnAgregar" runat="server" ImageUrl="~/Imagenes/btnIngresar.png"
                              ToolTip="Agregar Avance Financiero Semanal" Height="22px" />
                      </td>
                      <td width="350px" style="text-align:left; vertical-align:top;">
                        <asp:ImageButton ID="btnModificar" runat="server" ImageUrl="~/Imagenes/btnModificar.png" ToolTip="Salir" />
                      </td>
                      <td width="350px" style="text-align:right; vertical-align:top;">
                        <asp:ImageButton ID="btnExportar" runat="server" ImageUrl="~/Imagenes/btnExportar.png" ToolTip="Exportar a Excel" />
                      </td>
                      <td width="100px" style="text-align:right; vertical-align:top;">
                        <asp:ImageButton ID="ibn_salir" runat="server" ImageUrl="~/Imagenes/btnSalir.png" ToolTip="Salir" />
                      </td>
                  </tr>
              </table>
          </td></tr>
    </table>
  <uc1:Alerta id="alerta" runat="server"></uc1:Alerta>
</asp:Content>

